package cloud.lysky.java.on.design_pattern.chain_of_responsibility;

/**
 * @author luoly
 * @describe
 * @date 2022-08-20 11:42
 **/
//拼写检查处理器
public class SpellCheckerProcessing extends ProcessingObject<String>{
    @Override
    protected String handleWork(String text) {
        return text.replaceAll("ugly","beautiful");
    }
}